home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Graphics / QuickDraw GX / IW-Half-Dither / source / ChooserSupportProtos.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.6 KB  |  67 lines  |  [TEXT/MPS ]

  1. /*
  2.     copyright © 1992-1996 Apple Computer Inc.  All rights reserved.
  3.     
  4.     ChooserSupportProtos.h
  5.     
  6.     This file implements old application message overrides for the specific driver.
  7.     
  8.     Included in this file is the old PrintRecord emulation.  Note that the ImageWriter
  9.     PrintRecord is a wonder of misdirection and special cases.  You'll have fun
  10.     figuring out the code - so unless you really want to exactly emulate the ImageWriter
  11.     pages, you shouldn't spend too much time looking at this code.
  12.     
  13.     Modification history
  14.     7/23/92            TED                New file today
  15.     12/20/93        dmh                Sync'd with the shipping 1.0b3 GX driver.
  16.      8/26/94        dmh                Sync'd with the shipping 1.0.1 GX driver.
  17.     28/03/96        JHH                
  18. */
  19.  
  20. #ifndef __CHOOSERSPTPROTOSHEADER__
  21. #define __CHOOSERSPTPROTOSHEADER__
  22.  
  23. /****    Macintosh Toolbox Headers    ****/
  24.  
  25. #include <Types.h>
  26. #include <QuickDraw.h>
  27. #include <Fonts.h>
  28. #include <Lists.h>
  29. #include <Devices.h>
  30. #include <Resources.h>
  31. #include <Script.h>
  32. #include <ToolUtils.h>
  33. #include <LowMem.h>
  34. #ifndef __GXPRINTING__
  35.     #include <GXPrinting.h>
  36. #endif
  37.  
  38.  
  39. /****    ChooserSupport.c prototypes        ****/
  40.  
  41. // typedef for structure to hold globals for PACK code.
  42. typedef struct PACKglobal
  43. {
  44.     gxJob        job;
  45.     Str31        driverName;
  46. } PACKglobalRec, *PACKglobalPtr;
  47.  
  48.  
  49. pascal OSErr Device(short message, short caller,
  50.                     StringPtr objName,
  51.                     StringPtr zoneName,
  52.                     ListHandle theList,
  53.                     long p2,
  54.                      PACKglobalPtr global);
  55.  
  56. pascal void LDEF(
  57.     short         message,
  58.     Boolean     select,
  59.     Rect        *theRect,
  60.     Cell        theCell,
  61.     short        dataOffset,
  62.     short        dataLen,
  63.     ListHandle    theList);
  64.  
  65.  
  66.  
  67. #endif    // __CHOOSERSPTPROTOSHEADER__